/** 该文件仅存放演员模块相关的接口API */
import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from "../BaseUrl";
const { MACURL } = BASEURL;

const employeesApi = {
  // 查询全部
  queryAll() {
    return myaxios.get(MACURL + "/employees");
  },
  // id查询
  queryById(params) {
    return myaxios.get(MACURL + "/employees/query", params);
  },
  // 通过name模糊查询
  queryAllByName(params) {
    return myaxios.post(MACURL + "/employees/name", params);
  },
  add(params) {
    return myaxios.post(MACURL + "/employees/add", params);
  },
  delete(params) {
    return myaxios.post(MACURL + "/employees/del", params);
  },
  update(params) {
    return myaxios.post(MACURL + "/employees/put", params);
  },
};

export default employeesApi;
